# 列表推导式
# 集合推导式
# map
# set
# dict
beanOne = [1,2,3,4,5,6]

beanTwo = [i*i for i in beanOne]
print(beanTwo)

#将a列表中大于3的放入c列表平方
c = [i**2 for i in beanOne if i>3]
print(c)

d = {1,2,3,4,5,6}

e = {i*i for i in d}
print(e)